package org.akomantoso.core.data.type;

/**
 * This is the list of possible positions of the text being analyzed by the element in the analyis section.
 * 
 * <pre>
 * 	<xsd:simpleType name="posType">
 * 		<xsd:restriction base="xsd:string">
 * 			<xsd:enumeration value="start"/>
 * 			<xsd:enumeration value="before"/>
 * 			<xsd:enumeration value="inside"/>
 * 			<xsd:enumeration value="after"/>
 * 			<xsd:enumeration value="end"/>
 * 			<xsd:enumeration value="unspecified"/>
 * 		</xsd:restriction>
 * 	</xsd:simpleType>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 * 
 */
public enum PosType {

	start, before, inside, after, end, unspecified;

	public static PosType checkValueOf(String name) {
		
		if (name == null) {
			return null;	
		}
		
		return valueOf(name);
	}
	
}